package com.global.college.constants;

import android.os.Environment;

/**
 * Created by fu on 2020/2/21.
 * Describe: 常量配置
 */

public class Constant {

    //文件路径
    public static String rootPath = Environment.getExternalStorageDirectory().getAbsolutePath() + "/Download/";

    //国际化语言配置
    public static String Language = "Language";


    public static String IsFirstLogin = "IsFirstLogin";

    public static final String PERMISSION_SIZE = "PERMISSION_SIZE";

    /**
     * 存储用户信息
     */

    public static class User {

        /**
         * createBy :
         * delFlag : 0
         * email :
         * isCheckAgreement : 1
         * loginIp :
         * nickName : 18503003001
         * password :
         * phonenumber :
         * sex : 0
         * source : uton_edu_android
         * status : 0
         * updateBy :
         * userId : 57
         * userName : 18503003001
         * userType : 11
         */

        public final static String TOKEN = "TOKEN";// 用户token
        public final static String PHONE = "PHONE";// 带*手机号
        public final static String UID = "UID";//用户Id
        public final static String SEX = "SEX";// 用户性别
        public final static String HEADING = "HEADING";// 用户头像
        public final static String NICKNAME = "NICKNAME";// 用户昵称
        public final static String EMAIL = "EMAIL";
        public final static String DELFLAG = "DELFLAG";
        public final static String IS_CHECK_AGREEMENT = "IS_CHECK_AGREEMENT";
        public final static String SOURCE = "SOURCE";// 平台
        public final static String STATUS = "STATUS";
        public final static String USER_TYPE = "USER_TYPE";
        public final static String PASSWord = "PASSWord";

    }




    /**
     * 发送eventbus
     */
    public static final class EventBus {

        //支付成功
        public static final String APY_SUCCESS = "APY_SUCCESS";
        //支付失败
        public static final String APY_FAIL = "APY_FAIL";
        //绑定微信
        public static final String BIND_SUCCESS = "BIND_SUCCESS";
        //解绑微信
        public static final String UNBIND_SUCCESS = "UNBIND_SUCCESS";

        //跳转收藏
        public static final String JUMP_COLLECT = "JUMP_COLLECT";
        //隐藏虚拟按键
        public static final String HINT_SOCET_BAR = "JUMP_COLLECT";

        //微信授权成功回调
        public static final String WECHAT_LOGIN_SUCCESS = "WECHAT_LOGIN_SUCCESS";

    }

    // 微信支付APP_ID
    public static final String WECHAT_PAY_APP_ID = "wx8f4dacf3d5cd271d";
    public static final String WECHAT_SECRET = "1ea6cda8049b9fad70ba892ce8777c8d";

    public static final String redirectUri = "www.uton.net";


    //腾讯bugly错误收集
    public static final String TENGXUN_BUGLY_LOG = "65fb8165b0";

    //每页加载条数
    public final static int pageSize = 10;
    public final static int page = 1;

    //下载目录
    public static final class Key {
        public final static String DOWNLOAD_PATH = "/download_path/";
        public final static String SAVE_PATH = "save_path";
        public final static String NAME = "name";
        public final static String EXT = "ext";

        /**
         * 1-图片，2-视频，3-音频
         */
        public final static String CATEGORY = "category";
        public final static String FILE_URL = "file_url";
    }


    public static final String PREFIX_EXTRA = "EXTRA_";//Intent数据前缀

    public static final String PREFIX_BUNDLE = "BUNDLE_";//Bundle数据前缀

    //多媒体选择器配置信息
    public static final String EXTRA_MEDIA_PICKER_CONFIG = PREFIX_EXTRA + "media_picker_config";

    //已选择的多媒体数据列表
    public static final String EXTRA_PICKED_MEDIA_LIST = PREFIX_EXTRA + "picked_media_list";

    //打开多媒体选择器界面请求码
    public static final int MP_REQUEST_START_MEDIA_PICKER = 1;

    public String VIDEO_LIST = "video_list";

    public static final int REQUEST_PERSON_PICTURE = 101;
    public static final int REQUEST_COMPANY_PICTURE = 102;
    public static final int REQUEST_CERTIFI_PICTURE = 103;
    public static final int REQUEST_WORKS_PICTURE = 104;
}
